<?php

namespace common\entities\myhtsq;

use common\entities\ContractEntity;
use Yii;

/**
 * This is the model class for table "myscrm_contract_balance_attachement".
 *
 * @property string $attachement_id
 * @property string $attachement_name
 * @property string $attachement_ext_name
 * @property string $attachement_path
 * @property string $contract_id
 * @property string $created_on
 * @property string $created_by
 * @property string $modified_on
 * @property string $modified_by
 */
class ContractBalanceAttachementEntity extends ContractEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_contract_balance_attachement';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['attachement_id'], 'required'],
            [['created_on', 'modified_on'], 'safe'],
            [['attachement_id','contract_id', 'created_by', 'modified_by'], 'string', 'max' => 36],
            [['attachement_name'], 'string', 'max' => 100],
            [['attachement_ext_name'], 'string', 'max' => 10],
            [['attachement_path'], 'string', 'max' => 500]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'attachement_id' => 'Attachement ID',
            'attachement_name' => 'Attachement Name',
            'attachement_ext_name' => 'Attachement Ext Name',
            'attachement_path' => 'Attachement Path',
            'contract_id' => 'Contract ID',
            'created_on' => 'Created On',
            'created_by' => 'Created By',
            'modified_on' => 'Modified On',
            'modified_by' => 'Modified By',
        ];
    }
}
